package com.ruoyi.course.mapper;

import java.util.List;
import java.util.Set;

import com.ruoyi.course.domain.CdStudentTeacherCourse;

/**
 * studentcourseMapper接口
 * 
 * @author ruoyi
 * @date 2023-12-18
 */
public interface CdStudentTeacherCourseMapper 
{
    /**
     * 查询studentcourse
     * 
     * @param teacherId studentcourse主键
     * @return studentcourse
     */
    public List<CdStudentTeacherCourse> selectCdStudentTeacherCourseByTeacherId(Long teacherId);

    /**
     * 查询studentcourse列表
     * 
     * @param cdStudentTeacherCourse studentcourse
     * @return studentcourse集合
     */
    public List<CdStudentTeacherCourse> selectCdStudentTeacherCourseList(CdStudentTeacherCourse cdStudentTeacherCourse);

    /**
     * 新增studentcourse
     * 
     * @param cdStudentTeacherCourse studentcourse
     * @return 结果
     */
    public int insertCdStudentTeacherCourse(CdStudentTeacherCourse cdStudentTeacherCourse);

    /**
     * 修改studentcourse
     * 
     * @param cdStudentTeacherCourse studentcourse
     * @return 结果
     */
    public int updateCdStudentTeacherCourse(CdStudentTeacherCourse cdStudentTeacherCourse);

    /**
     * 删除studentcourse
     * 
     * @param teacherId studentcourse主键
     * @return 结果
     */
    public int deleteCdStudentTeacherCourseByTeacherId(Long teacherId);

    /**
     * 批量删除studentcourse
     * 
     * @param teacherIds 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteCdStudentTeacherCourseByTeacherIds(Long[] teacherIds);

    /**
     * 学生查看自己拥有的课程id
     * @return
     */
    public Set<Long> listByStudentSelf(Long studentId);
}
